package com.ipet.modules.sys.service.impl;

import com.ipet.common.utils.PageUtils;
import com.ipet.common.utils.Query;
import com.ipet.modules.sys.dao.PetOperationDao;
import com.ipet.modules.sys.entity.PetOperationEntity;
import com.ipet.modules.sys.service.PetOperationService;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;


@Service("petOperationService")
public class PetOperationServiceImpl extends ServiceImpl<PetOperationDao, PetOperationEntity> implements PetOperationService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<PetOperationEntity> page = this.selectPage(
                new Query<PetOperationEntity>(params).getPage(),
                new EntityWrapper<PetOperationEntity>()
        );

        return new PageUtils(page);
    }

}
